<template>
  <div id="app">
    <router-view></router-view>
    <canvas id="sakura"></canvas>
  </div>
</template>
<script>
// eslint-disable-next-line no-unused-vars
import sakura from '@/utils/sakura.js'
// eslint-disable-next-line no-unused-vars
import { funnyCanvas, initLive2D } from '@/utils/canvasUtil.js'
export default {
  data() {
    return {}
  },
  created() {},
  provide() {
    return {
      name: 'luotongpai'
    }
  },
  mounted() {
    window.Vue = this
    // 飞线特效
    // funnyCanvas()
    // 生产环境中路由isLoad控制在sakura.js:805
    if (process.env.NODE_ENV === 'production') {
      initLive2D()
    }
  },
  methods: {}
}
</script>
<style>
@import "style/app.less";
#sakura {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
}
</style>
